﻿
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = ElectronicWarfare
		Group                          = ECMTunings
		Module                         = hodge ecm tuning prototype
		CpuUsage                       = 65.00 TF
		ReactorUsage                   = 25.00 RP
		Type                           = Passive
		Slot                           = Head
		TechnologicalLevel             = T3P
		Mass                           = 150.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		EWStrength                    = 30.00 %
		ECMAccumulatorUsage           = 10.00 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;

    /// <summary>
    /// Hodge ecm tuning prototype module class
    /// </summary>
    /// <remarks>File generated on 22/04/2014 19:58:57</remarks>
    public sealed class HodgeECMTuningPrototype : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="HodgeECMTuningPrototype"/> class.
        /// </summary>
        public HodgeECMTuningPrototype()
            : base(
            "Hodge ECM tuning prototype",
            "",
            ModuleMetaGroupsEnum.ElectronicWarfare,
            ModuleGroupsEnum.ECMTunings,
            TechnologyLevelsEnum.Level3 | TechnologyLevelsEnum.Prototype,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(EcmCpuUsage<double>),65.00),
				new LazyFeature(typeof(ReactorUsage<double>),25.00),
				new LazyFeature(typeof(ModuleMass<double>),150.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 150.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.EcmStrength, 0.30 ){ Unit = UnitsEnum.Percentage, DisplayName ="EW Strength" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.EcmAccumulatorUsage, 0.1 ){ Unit = UnitsEnum.Percentage, DisplayName ="ECM Accumulator Usage" },
				 })
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}